package cn.zxd.member.contract.dao;

import cn.zxd.member.contract.vo.*;

import java.util.Map;
import java.util.List;

/**
 * Created by DaoCreator (daoInterface.jt)
 */
public interface ContractDao {
//#appendbegin
    //==============Contract==============
    public void insertContract(Contract vo);
    public void updateContract(Contract vo);

    public void deleteContract(Contract vo);
    public void deleteContractByPrimaryKey(String sn );
    public void deleteContractByParam(Object... param);
    public void deleteContractByParam(Map<String, Object> param);

    public ContractSO getContractByPrimaryKey(String sn );
    
    public int getContractCountByPrimaryKey(String sn );
    public int getContractCountByParam(Object... param);
    public int getContractCountByParam(Map<String, Object> param);

    public List<ContractSO> getContractListByParam(String orderBy, Object... param);
    public List<ContractSO> getContractListByParam(int page, int count, String orderBy, Object... param);
    public List<ContractSO> getContractListByParam(String orderBy, Map<String, Object> param);
    public List<ContractSO> getContractListByParam(String orderBy, Map<String, Object> param, int page, int count);
    public List<ContractSO> getAllContractList(String orderBy);

    public String getMaxContractNo(String s);
    //==============end of Contract==============	
//#appendend   
}
